#include "diagnosis.h"
#include "ui_diagnosis.h"

Diagnosis::Diagnosis(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Diagnosis)
{
    ui->setupUi(this);


    //弹出详细信息窗口
    connect(ui->tableWidget,&QTableWidget::itemDoubleClicked,[=](QTableWidgetItem *item){
        if(item->column()==2){
            DetailDialog *detailDialog = new DetailDialog(this,doctor);
            detailDialog->setAttribute(Qt::WA_DeleteOnClose);
            detailDialog->exec();
        }
    });
}

Diagnosis::~Diagnosis()
{
    delete ui;
}
